Icon arranging method and apparatus, and electronic device

ABSTRACT

An icon arranging method and apparatus, and an electronic device and belongs to the field of communication technologies. The method includes: receiving a first input on a plurality of icons (101); and arranging the plurality of icons in an arrangement manner corresponding to an input parameter of the first input in response to the first input (102), where the input parameter includes at least one of an input direction and an input track.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No.18/094,183 filed on Jan. 6, 2023, which is a continuation application ofInternational Application No. PCT/CN2021/105217 filed on Jul. 8, 2021,which claims priority to Chinese patent application No. 202010650017.7filed on Jul. 8, 2020, which are incorporated herein by reference intheir entireties.

TECHNICAL FIELD

This application belongs to the field of communication technologies, andin particular, to an icon arranging method and apparatus, and anelectronic device.

BACKGROUND

With increasingly abundant types of applications, there are more desktopicons on electronic devices. To find icons conveniently and quickly,users can arrange the icons through manual operation. When the userneeds to move an icon, the user can operate the icon to move the icon toa specific position.

During implementation of the operations, the inventor found that thereare at least the following problems in the prior art: when a userarranges icons, the user needs to operate each icon to move the icon.When a quantity of desktop icons is large, the operations arecumbersome.

SUMMARY

Embodiments of the present invention provide an icon arranging methodand apparatus, and an electronic device, which can resolve a problem ofcomplex operations when icons are arranged.

In order to resolve the technical problems above, the present inventionis implemented as follows:

According to a first aspect, an embodiment of the present inventionprovides an icon arranging method, including:

-   -   receiving a first input on a plurality of icons; and    -   arranging the plurality of icons in an arrangement manner        corresponding to an input parameter of the first input in        response to the first input, where    -   the input parameter includes at least one of an input direction        and an input track.

According to a second aspect, an embodiment of this application furtherprovides an icon arranging apparatus, including:

-   -   a receiving module, configured to receive a first input on a        plurality of icons; and    -   an arrangement module, configured to arrange the plurality of        icons in an arrangement manner corresponding to an input        parameter of the first input in response to the first input,        where    -   the input parameter includes at least one of an input direction        and an input track.

According to a third aspect, an embodiment of this application providesan electronic device, including a processor, a memory, and programs orinstructions stored in the memory and capable of being run on theprocessor, where the programs or the instructions are executed by theprocessor to implement the steps of the method according to the firstaspect.

According to a fourth aspect, an embodiment of this application providesa readable storage medium, storing programs or instructions, where theprograms or the instructions are executed by a processor to implementthe steps of the method according to a first aspect.

According to a fifth aspect, an embodiment of this application providesa chip, including a processor and a communication interface, where thecommunication interface is coupled to the processor, and the processoris configured to run programs or instructions to implement the methodaccording to the first aspect.

According to a sixth aspect, an embodiment of this application providesa computer software product, stored in a non-volatile storage medium,where the software product is configured to be executed by at least oneprocessor to implement the steps of the method according to the firstaspect.

According to a seventh aspect, an embodiment of this applicationprovides an electronic device, configured to perform the methodaccording to the first aspect.

In the embodiments of this application, a first input on a plurality oficons is received; and the plurality of icons are arranged in anarrangement manner corresponding to an input parameter of the firstinput in response to the first input, where the input parameter includesat least one of an input direction and an input track. In this way, auser may simultaneously perform an input on a plurality of icons, sothat the plurality of icons are simultaneously arranged in batchesaccording to an input parameter of the user input, to reduce operationsby the user.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a flowchart of an icon arranging method according to anembodiment of the present invention;

FIG. 2 to FIG. 16 are schematic diagrams of interfaces of an electronicdevice according to an embodiment of the present invention;

FIG. 17 is a structural diagram of an icon arranging apparatus accordingto an embodiment of the present invention; and

FIG. 18 is a structural diagram of an electronic device according to anembodiment of the present invention.

DETAILED DESCRIPTION

The technical solutions in the embodiments of this application areclearly and completely described in the following with reference to theaccompanying drawings in the embodiments of this application.Apparently, the described embodiments are some rather than all of theembodiments of this application. All other embodiments obtained by aperson skilled in the art based on the embodiments of this applicationwithout creative efforts shall fall within the protection scope of thisapplication.

The specification and claims of this application, and terms “first” and“second” are used to distinguish similar objects, but are not used todescribe a specific sequence or order. It should be understood that thedata termed in such a way are interchangeable in appropriatecircumstances, so that the embodiments of this application can beimplemented in orders other than the order illustrated or describedherein. In addition, “and/or” in the description and the claims means atleast one of the connected objects, and the character “/” in thisspecification generally indicates an “or” relationship between theassociated objects.

An icon arranging method provided in the embodiments of this applicationis described in detail below with reference to the accompanying drawingsby using specific embodiments and application scenarios thereof.

FIG. 1 is a flowchart of an icon arranging method according to anembodiment of the present invention. As shown in FIG. 1 , the methodincludes the following steps:

Step 101. Receive a first input on a plurality of icons.

In this step, the plurality of icons include at least two icons, theplurality of icons may include an icon of an application program, anicon of a folder, and the like, and the plurality of icons may be iconsof a same type or different types. A user may simultaneously perform afirst input on a plurality of icons by using a plurality of fingers andmay further operate at least some icons in the plurality of icons afterselecting the plurality of icons by using the first input.

The first input may be a sliding operation, a dragging operation, apressing operation, or the like, and the first input may further includea voice input.

Step 102. Arrange the plurality of icons in an arrangement mannercorresponding to an input parameter of the first input in response tothe first input.

-   -   the input parameter includes at least one of an input direction        and an input track.

In this step, an electronic device may move the plurality of iconsaccording to the input parameter, to arrange the plurality of iconsadjacent to each other or in a specific manner, or arrange and displaythe plurality of icons according to the input parameter in a specificarrangement manner, to arrange the plurality of icons in batches. Theinput parameter may further be an input distance or another parameter.

For example, as shown in FIG. 2 , the user performs an operation ofsliding to right on an icon 1, an icon 2, and an icon 4, and theelectronic device arranges the icon 1, the icon 2, and the icon 4 in asame column in response to the operation by the user, as shown in FIG. 3. Only an example is used herein, and the plurality of icons may furtherbe arranged into a circle, a square, or the like in another arrangementmanner.

In this embodiment of the present invention, the plurality of icons canbe rapidly arranged in batches according to the operation by the user,to reduce operations of the user.

Optionally, the input parameter includes the input direction; and

-   -   the arranging the plurality of icons in an arrangement manner        corresponding to an input parameter of the first input includes:    -   displaying the plurality of icons in a target row or a target        column, where    -   the target row or the target column is determined based on the        input direction, and an angle between the target row and the        input direction and an angle between the target column and the        input direction are greater than a first preset angle and less        than a second preset angle.

In this implementation, the target row or the target column isdetermined according to the input direction, and then the plurality oficons are displayed in the target row or the target column, that is, theplurality of arranged icons are located in the same row or the samecolumn, and the plurality of icons may be adjacent or not adjacent. Aplurality of icons before arrangement may be displayed in different rowsor different columns, the plurality of icons can be displayed in thesame row or the same column through the operation, and the plurality oficons can be rapidly arranged.

Both an angle between the input direction and a direction of the targetrow and an angle between the input direction and a direction of thetarget column are within a preset angle range, that is, are greater thana first preset angle and less than a second preset angle. The target rowor the target column corresponding to the input direction may bedetermined according to the input direction and the angle range.

For example, if the angle between the input direction and the targetcolumn is 60°, the plurality of icons are displayed in the target columnaccording to the input direction. The angle value herein is merely anexample for ease of understanding, and another angle also falls withinthe protection scope of the present invention.

In this implementation of the present invention, a plurality of iconscan be rapidly arranged into a same row or a same column based on anoperation by the user, to reduce the operations by the user and improvethe operation efficiency.

Further, before the displaying the plurality of icons in a target row ora target column, the method further includes:

-   -   respectively displaying the plurality of icons in at least one        initial column; and    -   the displaying the plurality of icons in a target row or a        target column includes:    -   respectively displaying the plurality of icons in the target        row, where    -   the target row is determined based on the input direction, the        target row is perpendicular to the input direction, the        plurality of icons in the target row are respectively displayed        in a plurality of final columns, and the initial column and the        final column of each icon of the plurality of icons are the        same.

For example, as shown in FIG. 4 , initial columns of the icon 1, theicon 2, and the icon 4 are respectively a first column, a second column,and a third column, and the user performs an upward multi-finger slidingoperation on the icon 1, the icon 2, and the icon 4. The electronicdevice determines that the target row is a first row of the icon 1 basedon the sliding operation and displays all the icon 1, the icon 2, andthe icon 4 in the target row, that is, the first row. Final columns ofthe icon 1, the icon 2, and the icon 4 that are in the first row arerespectively the first column, the second column, and the third column,that is, the initial column and the final column of each icon are keptunchanged, as shown in FIG. 5 .

The solution may further be replaced with the following:

-   -   before the displaying the plurality of icons in a target row or        a target column, the method further includes:    -   respectively displaying the plurality of icons in at least one        initial row; and    -   the displaying the plurality of icons in a target row or a        target column includes:    -   respectively displaying the plurality of icons in the target        column, where    -   the target column is determined based on the input direction,        the target column is perpendicular to the input direction, the        plurality of icons in the target column are respectively        displayed in a plurality of final rows, and the initial row and        the final row of each icon of the plurality of icons are the        same.

For example, as shown in FIG. 2 , initial rows of the icon 1, the icon2, and the icon 4 are respectively a first row, a third row, and afourth row, and the user performs a rightward multi-finger slidingoperation on the icon 1, the icon 2, and the icon 4. The electronicdevice determines that the target column is a third column of the icon 4based on the sliding operation and displays all the icon 1, the icon 2,and the icon 4 in the target column, that is, the third column. Finalrows of the icon 1, the icon 2, and the icon 4 that are in the thirdcolumn are respectively the first row, the third row, and the fourthrow, that is, the initial row and the final row of each icon are keptunchanged, as shown in FIG. 3 .

In this implementation of the present invention, a row or a column of anicon is kept unchanged before movement and after movement, making itconvenient for the user to rapidly view a position of the icon, therebyimproving an icon arrangement effect.

Optionally, the target row is perpendicular to the input direction, orthe target column is perpendicular to the input direction.

In this implementation, the target row or the target column can bedetermined according to the input direction according to the fact thatthe target row or the target column is perpendicular to the inputdirection, so that the plurality of icons are arranged and displayed inthe target row or the target column.

For example, the user performs an operation of sliding to right on aplurality of icons, and the electronic device obtains a rightwarddirection of the sliding operation in response to the operation by theuser and determines a target column perpendicular to the slidingdirection, to display the plurality of icons in the target column.

In this implementation of the present invention, a plurality of iconscan be rapidly arranged into a same row or a same column based on anoperation direction by the user, to reduce the operations by the userand improve the operation efficiency.

Optionally, the input parameter further includes the input distance, andthe target row or the target column is associated with the inputdistance.

For example, when the input distance is relatively large, the target rowor the target column is relatively far away from initial positions ofthe plurality of icons; and when the input distance is relatively small,the target row or the target column is relatively close to the initialpositions of the plurality of icons. It is convenient for the user torapidly display the plurality of icons in specific positions.

Optionally, before the receiving a first input on a plurality of icons,the method further includes:

-   -   displaying a first icon in the target row or the target column;        and    -   the displaying the plurality of icons in a target row or a        target column includes:    -   displaying the plurality of icons in the target row or the        target column where the first icon is located, where    -   the first icon is an icon closest to a target screen edge in the        plurality of icons, and the target screen edge is a screen edge        to which the input direction points.

In this implementation, a target screen edge may be determined based onthe input direction, and an icon closest the target screen edge in theplurality of icons is a first icon. A target row or a target column maybe determined based on a row and a column of the first icon and theinput direction. The target row or the target column includes the firsticon, and an angle between the input direction and the target row or thetarget column is within a preset angle range.

The plurality of icons are arranged in the target row where the firsticon is located, or the plurality of icons are arranged in the targetcolumn where the first icon is located, to keep a position of the firsticon unchanged.

For example, as shown in FIG. 2 , the user performs an operation ofsliding to right on the icon 1, the icon 2, and the icon 4, and theelectronic device determines that a right screen edge is a target screenedge according to a direction to which the sliding direction points andthe icon 4 closest to the target screen edge is the first icon inresponse to the operation by the user; and moves the icon 1 and the icon2 to the right, so that the icon 1, the icon 2, and the icon 4 arearranged in the column where the icon 4 is located, as shown in FIG. 3 .

In another example, as shown in FIG. 4 , the user performs an operationof sliding upward on the icon 1, the icon 2, and the icon 4, and theelectronic device determines that an upper screen edge is a targetscreen edge according to a direction to which the sliding directionpoints and the icon 1 closest to the target screen edge is the firsticon in response to the operation by the user; and moves the icon 2 andthe icon 4 upward until the icon 1, the icon 2, and the icon 4 arearranged in the row where the icon 1 is located, as shown in FIG. 5 .

In this implementation, the target row or the target column isdetermined based on the position of the first icon and the inputdirection, and the plurality of icons can be displayed in a specific rowor column in a targeted manner, which can meet a requirement of theuser.

Optionally, the displaying the plurality of icons in a target row or atarget column includes:

-   -   respectively displaying the plurality of icons in the target        column, and keeping display rows corresponding to the plurality        of icons unchanged;    -   or    -   respectively displaying the plurality of icons in the target        row, and keeping display columns corresponding to the plurality        of icons unchanged.

In this implementation, further, in a case that the plurality of iconsare displayed in the target column, a row where each icon is located iskept unchanged; or in a case that the plurality of icons are displayedin the target row, a column where each icon is located is keptunchanged.

For example, as shown in FIG. 2 , the user performs an operation ofsliding to right on the icon 1, the icon 2, and the icon 4, and theelectronic device moves the icon 1 and the icon 2 to the right inresponse to the operation by the user and keeps a row where each icon islocated unchanged, so that the icon 1, the icon 2, and the icon 4 arearranged in the same column, as shown in FIG. 3 .

In another example, as shown in FIG. 4 , the user performs an operationof sliding upward on the icon 1, the icon 2, and the icon 4, and theelectronic device moves the icon 2 and the icon 4 upward in response tothe operation by the user and keeps a column where each icon is locatedunchanged until the icon 1, the icon 2, and the icon 4 are arranged inthe same row, as shown in FIG. 5 .

In this implementation, the target row or the target column isdetermined based on rows or columns where the plurality of icons arelocated and the input direction, and the plurality of icons can bearranged in a specific manner in a targeted manner, which can meet therequirement of the user.

Optionally, in a case that an initial row of a fifth icon in theplurality of icons is the same as an initial row of the first icon, theinitial row of the fifth icon is different from the final row thereof;or

-   -   in a case that an initial column of a fifth icon in the        plurality of icons is the same as an initial column of the first        icon, the initial column of the fifth icon is different from the        final column thereof.

For example, as shown in FIG. 6 , initial rows of the icon 1, the icon2, and the icon 4 are all a first row, an initial column of the icon 1is a first column, an initial column of the icon 2 is a second column,an initial column of the icon 4 is a third column, and the user performsan operation of sliding to right on the icon 1, the icon 2, and the icon4. The electronic device displays the icon 1, the icon 2, and the icon 4in a same column, that is, the third column where the icon 4 is located,in response to the operation by the user, a final row of the icon 1 is athird row, a final row of the icon 2 is a second row, and a final row ofthe icon 4 is the first row. That is, both the final rows of the icon 1and the icon 2 are different from the initial rows, as shown in FIG. 7 .

Similarly, in the plurality of icons, in a case that the initial columnof the fifth icon is the same as the initial column of the first icon,the position of the first icon may be kept unchanged, and the fifth iconis displayed in the final row where the first icon is located, that is,the final column of the fifth icon is different from the initial columnthereof. No example is provided again for description herein.

In this implementation of the present invention, it is convenient toarrange a plurality of icons in a same row or a same column in differentpositions, which can improve the arrangement efficiency.

Optionally, in a case that the initial rows of at least two sixth iconsin the plurality of icons are the same, the at least two sixth icons inthe target column is located in a first folder, and a row where thefirst folder is located is the same as the initial row of the sixthicon; or

-   -   in a case that the initial columns of at least two seventh icons        in the plurality of icons are the same, the at least two seventh        icons in the target row is located in a second folder, and a        column where the second folder is located is the same as the        initial column of the seventh icon.

In this implementation, if at least two sixth icons are located in asame initial row, the at least two sixth icons may be placed in a firstfolder, the first folder may be displayed in a target column, and a rowwhere the first folder is located is kept as the initial row of the atleast two sixth icons.

For example, as shown in FIG. 6 , the icon 1, the icon 2, and the icon 4are respectively displayed in different columns in a first row, the userperforms an operation of sliding to right on the icon 1, the icon 2, andthe icon 4, the electronic device create a first folder and moves theicon 1, the icon 2, and the icon 4 to the first folder in response tothe operation by the user, and displays the first folder in a targetcolumn, that is, a column where the icon 4 is located, and the firstfolder is still displayed in the first row, as shown in FIG. 8 .

Similarly, for the case that the initial columns of the at least twoseventh icons are the same, reference may also be made to the listedmanner, and no example is described herein again.

It should be noted that the at least two sixth icons and the at leasttwo seventh icons may further include icons of the folders. For example,the user performs a multi-finger sliding operation on two sixth icons ina same row and one folder icon, and the electronic device moves the twosixth icons to the folder icon in response to the operation by the user.In this way, the plurality of icons is conveniently and rapidlyarranged. In addition, the first folder or the second folder may furtherbe named according to types of icons in the folder.

Optionally, the input direction includes a first input direction and asecond input direction, and the target row or the target column isdetermined based on the first input direction; and after the displayingthe plurality of icons in a target row or a target column, the methodfurther includes:

-   -   moving the plurality of icons within the target row or the        target column along the second input direction, so that every        two icons in the target row or the target column are adjacent to        each other.

In this implementation, if vacant icon positions exist among theplurality of icons after the plurality of icons are arranged in thetarget row or the target column, a plurality of icons may further bearranged one after another, so that every two of the plurality of iconsare adjacent to each other. Specifically, the icons may be shiftedtoward the second input direction according to the second inputdirection.

For example, as shown in FIG. 9 , the user slides the icon 1, the icon2, and an icon 3 upward (that is, the first input direction), and thenslides the icon 1, the icon 2, and the icon 3 to the left (that is, thesecond input direction), and the electronic device first moves the icon2 and the icon 3 to a row where the icon 1 is located and then shiftsthe icon 2 and the icon 3 to the left in response to the operation bythe user, so that the icon 1, the icon 2, and the icon 3 are adjacent,as shown in FIG. 10 . If another icon and a vacant position existbetween the icon 1 and the icon 2 after the icon 1, the icon 2, and theicon 3 are located in the same row, the icon 2 and the icon 3 may besequentially moved leftward to the vacant positions adjacent to the icon1, that is, shifting to the left.

In this implementation of the present invention, alignment andabsorption operations can be rapidly performed on the icons, to rapidlyarrange the icons.

Optionally, the input parameter includes the input track, and thearranging the plurality of icons in an arrangement manner correspondingto an input parameter of the first input includes:

-   -   arranging the plurality of icons according to a pattern formed        by the input track.

In this implementation, icons can be arranged in different shapesaccording to the pattern formed by the input track.

In a case that the first input includes a plurality of inputs on theplurality of icons, the input track may include a pattern formed by aplurality of input tracks of the plurality of inputs or a pattern formedby some input tracks of the plurality of inputs.

In this implementation, the icons can be arranged according to thepattern formed by the input track, to improve the flexibility of iconarrangement.

Optionally, the receiving a first input on a plurality of iconsincludes:

-   -   receiving a first sub-input on a second icon in the plurality of        icons, and receiving a second sub-input on a third icon in the        plurality of icons; and    -   the arranging the plurality of icons according to a pattern        formed by the input track includes:    -   arranging the plurality of icons according to the pattern formed        by the input track, where a position of the third icon is kept        unchanged.

In this implementation, the plurality of icons include a second icon anda third icon. The user may respectively perform a first sub-input on thesecond icon and the second sub-input on the third icon. The firstsub-input and the second sub-input may be respectively a pressing input,a sliding input, a dragging input, or the like, and the first sub-inputand the second sub-input may be the same input or different types ofinputs.

During arrangement, a position of the third icon is kept unchanged, andthe second icon is moved to a preset region where the third icon islocated, so that the plurality of icons are arranged according to apattern formed by an input track.

For example, as shown in FIG. 11 , the user presses the icon 3 by usinga finger of one hand and simultaneously performs a sliding operation onthe icon 1, the icon 2, and the icon 4 by using the other hand.Specifically, a three-finger sliding operation may be simultaneouslyperformed on the three icons or a sliding operation may be performed onsome icons of the three icons after the three icons are selected. Asliding track of the sliding operation obtained by the electronic deviceis moving upward, then moving right, and then moving downward, where thesliding track forms three sides of a rectangle. The electronic devicearranges the icon 1, the icon 2, the icon 3, and the icon 4 into therectangle according to the three sides formed by the sliding track byusing the icon 3 as a corner of the rectangle, as shown in FIG. 12 .

If a sliding track of the finger is similar to a triangle, the icons arearranged into the triangle. As shown in FIG. 13 , the user presses theicon 3 by using a finger of one hand and simultaneously slides the icon2 and the icon 4 to the right, then upward, and then to the lower leftby using another hand, and a sliding track forms a triangle, wherearrows represents sliding directions and sliding tracks corresponding tothe icons. The electronic device moves the icon 2 and the icon 4 byusing the icon 3 as a fixed icon, to arrange the icon 2, the icon 3, andthe icon 4 into the triangle, as shown in FIG. 14 .

In this implementation of the present invention, the icons can bearranged in a customized shape based on an operation track, so that theicons are arranged in batches, and an arrangement effect and a degree offreedom of arrangement can be improved.

Optionally, at least a subset of the plurality of icons is displayed ata first position, and a fourth icon is displayed at a second position;and

-   -   the arranging the plurality of icons in an arrangement manner        corresponding to an input parameter of the first input includes:    -   arranging the plurality of icons in the arrangement manner        corresponding to the input parameter of the first input, where        the at least subset of the plurality of icons is moved from the        first position to the second position, and the fourth icon is        moved from the second position to the first position.

In this implementation, at least a subset of the plurality of icons isdisplayed at a first position, and a fourth icon is displayed at asecond position. During arrangement of the plurality of icons, theposition of the at least subset of the plurality of icons and theposition of the fourth icon may be exchanged, that is, the at leastsubset is moved from the first position to the second position, and thefourth icon is moved from the second position to the first position.

A quantity of fourth icons may be equal to a quantity of at leastsubset, and the position of the fourth icon and the position of the atleast a subset are respectively exchanged.

For example, as shown in FIG. 15 , the user simultaneously performs anupward sliding operation on the icon 1, an icon 5, and an icon 7. Theelectronic device moves the icon 5 and the icon 7 upward in response tothe operation by the user, so that the icon 1, the icon 5, and the icon7 are located in a row where the icon 1 is located. Because the icon 2and the icon 3 exist at positions to which the icon 5 and the icon 7 aremoved, positions of the icon 5 and the icon 2 are exchanged, andpositions of the icon 7 and the icon 3 are exchanged, as shown in FIG.16 . If the user continues to slide the icon 1, the icon 5, and the icon7 to the left after sliding the icon 1, the icon 5, and the icon 7upward, the icon 5 and the icon 7 are continuously shifted to the leftafter being moved to a row where the icon 1 is located, so that the icon1, the icon 5, and the icon 7 are displayed adjacent to each other.

In this way, a plurality of icons can be arranged in a specific order,to improve an arrangement effect of the plurality of icons.

It should be noted that the plurality of implementations in theembodiments of the present invention may be implemented separately or incombination, and the example is only an example of one implementationand does not constitute a limitation on a specific implementation.

It should be noted that, the icon arranging method provided in theembodiments of this application may be performed by an icon arrangingapparatus or a control module in the icon arranging apparatus configuredto perform and load the icon arranging method. In this embodiment ofthis application, the icon arranging method provided in the embodimentsof this application is described by using an example in which the iconarranging apparatus performs and loads the icon arranging method.

FIG. 17 is a structural diagram of an icon arranging apparatus 1700according to an embodiment of the present invention. As shown in FIG. 17, the icon arranging apparatus 1700 includes:

-   -   a receiving module 1701, configured to receive a first input on        a plurality of icons; and    -   an arrangement module 1702, configured to arrange the plurality        of icons in an arrangement manner corresponding to an input        parameter of the first input in response to the first input,        where    -   the input parameter includes at least one of an input direction        and an input track.

Optionally, the input parameter includes the input direction; and

-   -   the arrangement module is further configured to:    -   display the plurality of icons in a target row or a target        column, where    -   the target row or the target column is determined based on the        input direction, and an angle between the target row and the        input direction and an angle between the target column and the        input direction are greater than a first preset angle and less        than a second preset angle.

Optionally, the target row is perpendicular to the input direction, orthe target column is perpendicular to the input direction.

Optionally, the apparatus further includes:

-   -   a display module, configured to display a first icon in the        target row or the target column; and    -   the arrangement module is further configured to:    -   display the plurality of icons in the target row or the target        column where the first icon is located, where    -   the first icon is an icon closest to a target screen edge in the        plurality of icons, and the target screen edge is a screen edge        to which the input direction points.

Optionally, the arrangement module is further configured to:

-   -   respectively display the plurality of icons in the target        column, and keep display rows corresponding to the plurality of        icons unchanged;    -   or    -   respectively display the plurality of icons in the target row,        and keep display columns corresponding to the plurality of icons        unchanged.

Optionally, the input direction includes a first input direction and asecond input direction, and the target row or the target column isdetermined based on the first input direction; and the apparatus furtherincludes:

-   -   a moving module, configured to move the plurality of icons        within the target row or the target column along the second        input direction, so that every two icons in the target row or        the target column are adjacent to each other.

Optionally, the input parameter includes the input track, and thearrangement module is further configured to:

-   -   arrange the plurality of icons according to a pattern formed by        the input track.

Optionally, the receiving module is further configured to:

-   -   receive a first sub-input on a second icon in the plurality of        icons, and receive a second sub-input on a third icon in the        plurality of icons; and    -   the arrangement module is further configured to:    -   arrange the plurality of icons according to the pattern formed        by the input track, where a position of the third icon is kept        unchanged.

Optionally, at least a subset of the plurality of icons is displayed ata first position, and a fourth icon is displayed at a second position;and

-   -   the arrangement module is further configured to:    -   arrange the plurality of icons in the arrangement manner        corresponding to the input parameter of the first input, where        the at least subset of the plurality of icons is moved from the        first position to the second position, and the fourth icon is        moved from the second position to the first position.

The icon arranging apparatus 1700 can implement various processes andachieve the same beneficial effects implemented by the electronic devicein the foregoing method embodiments. To avoid repetition, details arenot described herein again.

The icon arranging apparatus in this embodiment of this application maybe an apparatus, or may be a component, an integrated circuit, or a chipin a terminal. The apparatus may be a mobile electronic device or may bea non-mobile electronic device. For example, the mobile electronicdevice may be a mobile phone, a tablet computer, a notebook computer, apalmtop computer, an in-vehicle electronic device, a wearable equipment,an ultra-mobile personal computer (ultra-mobile personal computer,UMPC), a netbook, a personal digital assistant (personal digitalassistant, PDA), or the like. The non-mobile electronic device may be aserver, a network attached storage (Network Attached Storage, NAS), apersonal computer (personal computer, PC), a television (television,TV), a teller machine, a self-service machine, or the like. This is notspecifically limited in this embodiment of this application.

The icon arranging apparatus in this embodiment of this application maybe an apparatus with an operating system. The operating system may be anAndroid (Android) operating system, an ios operating system, or anotherpossible operating system. This is not specifically limited in thisembodiment of this application.

The icon arranging apparatus provided in this embodiment of thisapplication can implement the processes implemented by the iconarranging apparatus in the method embodiment of FIG. 1 to FIG. 16 . Toavoid repetition, details are not described herein again.

In this embodiment of the present invention, a user may simultaneouslyperform an input on a plurality of icons, so that the plurality of iconsare simultaneously arranged in batches according to an input parameterof the user input, to reduce operations by the user.

Optionally, the embodiments of this application further provide anelectronic device, including a processor, a memory, and programs orinstructions stored on the memory and capable of being run on theprocessor, where the programs or the instructions are executed by theprocessor to implement each process of the foregoing embodiments of theicon arranging method, and the same technical effects can be achieved.To avoid repetition, details are not described herein again.

It should be noted that the electronic device in this embodiment of thisapplication includes the mobile electronic device and the non-mobileelectronic device.

FIG. 18 is a schematic diagram of a hardware structure of an electronicdevice according to an embodiment of this application.

The electronic device 1800 includes, but is not limited to, componentssuch as a radio frequency unit 1801, a network module 1802, an audiooutput unit 1803, an input unit 1804, a sensor 1805, a display unit1806, a user input unit 1807, an interface unit 1808, a memory 1809, anda processor 1810.

A person skilled in the art may understand that the electronic device1800 may further include the power supply (such as a battery) forsupplying power to the components. The power supply may logicallyconnect to the processor 1810 by using a power supply management system,thereby implementing functions, such as charging, discharging, and powerconsumption management, by using the power supply management system. Theelectronic device structure shown in FIG. 18 constitutes no limitationon an external device, and the electronic device may include more orfewer components than those shown in the figure, or some components maybe combined, or a different component deployment may be used. Detailsare described herein again.

The processor 1810 is configured to:

-   -   control the user input unit 1807 to receive a first input on a        plurality of icons; and    -   arrange the plurality of icons in an arrangement manner        corresponding to an input parameter of the first input in        response to the first input, where    -   the input parameter includes at least one of an input direction        and an input track.

In this way, a user may simultaneously perform an input on a pluralityof icons, so that the plurality of icons are simultaneously arranged inbatches according to an input parameter of the user input, to reduceoperations by the user.

Optionally, the input parameter includes the input direction; and thatthe process 1810 arranges the plurality of icons in an arrangementmanner corresponding to an input parameter of the first input includes:

-   -   displaying the plurality of icons in a target row or a target        column, where    -   the target row or the target column is determined based on the        input direction, and an angle between the target row and the        input direction and an angle between the target column and the        input direction are greater than a first preset angle and less        than a second preset angle.

Optionally, the target row is perpendicular to the input direction, orthe target column is perpendicular to the input direction.

Optionally, the processor 1810 is further configured to:

-   -   control the display unit 1806 to display a first icon in the        target row or the target column; and    -   control the display unit 1806 to display the plurality of icons        in the target row or the target column where the first icon is        located, where    -   the first icon is an icon closest to a target screen edge in the        plurality of icons, and the target screen edge is a screen edge        to which the input direction points.

Optionally, that the processor 1810 controls the display unit 1806 todisplay the plurality of icons in a target row or a target columnincludes:

-   -   respectively displaying the plurality of icons in the target        column, and keeping display rows corresponding to the plurality        of icons unchanged;    -   or    -   respectively displaying the plurality of icons in the target        row, and keeping display columns corresponding to the plurality        of icons unchanged.

Optionally, the input direction includes a first input direction and asecond input direction, and the target row or the target column isdetermined based on the first input direction; and The processor 1810 isfurther configured to:

-   -   move the plurality of icons within the target row or the target        column along the second input direction, so that every two icons        in the target row or the target column are adjacent to each        other.

Optionally, the input parameter includes the input track, and that theprocessor 1810 arranges the plurality of icons in an arrangement mannercorresponding to an input parameter of the first input includes:

-   -   arranging the plurality of icons according to a pattern formed        by the input track; and

Optionally, that the processor 1810 receives a first input on aplurality of icons includes:

-   -   receiving a first sub-input on a second icon in the plurality of        icons, and receiving a second sub-input on a third icon in the        plurality of icons; and    -   that the processor 1810 arranges the plurality of icons        according to a pattern formed by the input track includes:    -   arranging the plurality of icons according to the pattern formed        by the input track, where a position of the third icon is kept        unchanged.

Optionally, at least a subset of the plurality of icons is displayed ata first position, and a fourth icon is displayed at a second position;and that the process 1810 arranges the plurality of icons in anarrangement manner corresponding to an input parameter of the firstinput includes:

-   -   arranging the plurality of icons in the arrangement manner        corresponding to the input parameter of the first input, where        the at least subset of the plurality of icons is moved from the        first position to the second position, and the fourth icon is        moved from the second position to the first position.

It should be understood that in this embodiment of this application, theinput unit 1804 may include a graphics processing unit (GraphicsProcessing Unit, GPU) 18041 and a microphone 18042. The graphicsprocessing unit 18041 performs processing on image data of a staticpicture or a video that is obtained by an image acquisition device (forexample, a camera) in a video acquisition mode or an image acquisitionmode. The display unit 1806 may include a display panel 18061, forexample, the display panel 18061 configured in a form such as a liquidcrystal display or an organic light-emitting diode. The user input unit1807 includes a touch panel 18071 and another input device 18072. Thetouch panel 18071 is also referred to as a touchscreen. The touch panel18071 may include two parts: a touch detection apparatus and a touchcontroller. The another input device 18072 may include, but not limitedto, a physical keyboard, a functional key (such as a volume control keyor a switch key), a track ball, a mouse, and a joystick, which are notdescribed herein in detail. The memory 1809 may be configured to store asoftware program and various data, which includes, but not limited to,an application and an operating system. The processor 1810 may integratean application processor and a modem processor. The applicationprocessor mainly processes an operating system, a user interface, anapplication program, and the like. The modem processor mainly processeswireless communication. It may be understood that the foregoing modemmay either not be integrated into the processor 1810.

An embodiment of this application further provides a readable storagemedium, storing programs or instructions, where the programs or theinstructions are executed by a processor to implement each process ofthe foregoing embodiments of the icon arranging method, and the sametechnical effect can be achieved. To avoid repetition, details are notrepeated herein again.

The processor is the processor in the electronic device in the foregoingembodiment. The readable storage medium includes a computer-readablestorage medium such as a computer read-only memory (Read-Only Memory,ROM), a random access memory (Random Access Memory, RAM), a magneticdisk, or an optical disc.

An embodiment of this application further provides a chip, including aprocessor and a communication interface, where the communicationinterface is coupled to the processor, and the processor is configuredto run programs or the instructions, to implement each process of theforegoing embodiments of the icon arranging method, and the sametechnical effect can be achieved. To avoid repetition, details are notrepeated herein again.

It should be understood that, the chip mentioned in this embodiment ofthis application may also be referred to as a system-level chip, asystem chip, a chip system, a system on chip, or the like.

It should be noted that, the terms “include”, “comprise”, or any othervariation thereof in this specification is intended to cover anon-exclusive inclusion, which specifies the presence of statedprocesses, methods, objects, or apparatuses, but do not preclude thepresence or addition of one or more other processes, methods, objects,or apparatuses. Without more limitations, elements defined by thesentence “including one” does not exclude that there are still othersame elements in the processes, methods, objects, or apparatuses. Inaddition, it should be noted that, the scope of the methods andapparatuses in the implementations of this application is not limited toperforming the functions in the order shown or discussed, but mayfurther include performing the functions in a substantially simultaneousmanner or in a reverse order depending on the functions involved. Forexample, the described methods may be performed in an order differentfrom that described, and various steps may be added, omitted, orcombined. In addition, features described with reference to someexamples may be combined in other examples.

A person of ordinary skill in the art may be aware that, in combinationwith the examples of units and algorithm steps described in theembodiments disclosed in this specification, this application may beimplemented by using electronic hardware or a combination of computersoftware and electronic hardware. Whether the functions are executed ina mode of hardware or software depends on particular applications anddesign constraint conditions of the technical solutions. A personskilled in the art may use different methods to implement the describedfunctions for each particular application, but it should not beconsidered that the implementation goes beyond the scope of the presentdisclosure.

Those skilled in the art can clearly understand that for convenience andconciseness of description, the specific working processes of theabove-described systems, devices and units can be understood withreference to the corresponding processes in the above-described methodembodiments and will not be repeated here.

In the embodiments provided in this application, it should be understoodthat the disclosed apparatus and method may be implemented in othermanners. For example, the described apparatus embodiments are onlyexemplary. For example, the division of the units is only a logicalfunction division and may be other divisions during actualimplementation. For example, a plurality of units or components may becombined or integrated into another system, or some features may beignored or not performed. In addition, the shown or discussed mutualcouplings or direct couplings or communication connections may beimplemented through some interfaces. The indirect couplings orcommunication connections between the apparatus or units may beimplemented in electronic, mechanical, or other forms.

The units described as separate components may or may not be physicallyseparated, and the components displayed as units may or may not bephysical units, and may be located in one place or may be distributedover a plurality of network units. Some or all of the units may beselected according to actual needs to achieve the objectives of thesolutions of the embodiments.

In addition, functional units in the embodiments of the presentdisclosure may be integrated into one processing unit, or each of theunits may be physically separated, or two or more units may beintegrated into one unit.

Through the descriptions of the foregoing implementations, a personskilled in the art may clearly understand that the methods in theforegoing embodiments may be implemented by means of software and anecessary general hardware platform, and certainly, may also beimplemented by hardware, but in many cases, the former manner is abetter implementation. Based on such an understanding, the technicalsolutions of this application essentially or the part contributing tothe related art may be implemented in the form of a software product.The computer software product is stored in a storage medium (such as aROM/RAM, a magnetic disk, or an optical disc), and includes severalinstructions for instructing a terminal (which may be a mobile phone, acomputer, a server, an air conditioner, a network device, or the like)to perform the method described in the embodiments of this application.

It may be understood that, the embodiments described in the embodimentsof the present disclosure may be implemented by using software,hardware, firmware, middleware, microcode, or a combination thereof. Forimplementation by hardware, a module, a unit, or a sub-unit may beimplemented in one or more application-specific integrated circuits(Application Specific Integrated Circuits, ASIC), a digital signalprocessor (Digital Signal Processing, DSP), a digital signal processingdevice (DSP Device, DSPD), a programmable logic device (ProgrammableLogic Device, PLD), a field-programmable gate array (Field-ProgrammableGate Array, FPGA), a general purpose processor, a controller, amicrocontroller, a microprocessor, and other electronic units configuredto perform the functions described in the present disclosure, or acombination thereof.

For implementation by software, the technologies in the embodiments maybe implemented by performing the functional modules (for example, aprocess and a function) in the embodiments of the present disclosure.Software code may be stored in a memory and executed by a processor. Thememory may be implemented in the processor or outside the processor.

The embodiments of this application are described above with referenceto the accompanying drawings. However, this application is not limitedto the foregoing specific implementations. The foregoing specificimplementations are illustrative instead of limitative. Enlightened bythis application, a person of ordinary skill in the art can make manyforms without departing from the idea of this application and the scopeof protection of the claims. All of the forms fall within the protectionof this application.

What is claimed is:
 1. An icon arranging method, comprising: receiving afirst input on a plurality of icons; and arranging the plurality oficons in an arrangement manner corresponding to an input parameter ofthe first input in response to the first input, wherein the inputparameter comprises an input track, and the arranging the plurality oficons in an arrangement manner corresponding to an input parameter ofthe first input comprises: arranging the plurality of icons according toa pattern formed by the input track; wherein the receiving the firstinput on the plurality of icons comprises: receiving a first sub-inputon a second icon in the plurality of icons, and receiving a secondsub-input on a third icon in the plurality of icons; and the arrangingthe plurality of icons according to a pattern formed by the input trackcomprises: arranging the plurality of icons according to the patternformed by the input track, wherein a position of the third icon is keptunchanged.
 2. The method according to claim 1, wherein the inputparameter comprises the input direction; and the arranging the pluralityof icons in an arrangement manner corresponding to an input parameter ofthe first input comprises: displaying the plurality of icons in a targetrow or a target column, wherein the target row or the target column isdetermined based on the input direction, and an angle between the targetrow and the input direction and an angle between the target column andthe input direction are greater than a first preset angle and less thana second preset angle.
 3. The method according to claim 2, wherein thetarget row is perpendicular to the input direction, or the target columnis perpendicular to the input direction.
 4. The method according toclaim 2, wherein before the receiving the first input on the pluralityof icons, the method further comprises: displaying a first icon in thetarget row or the target column; and the displaying the plurality oficons in a target row or a target column comprises: displaying theplurality of icons in the target row or the target column where thefirst icon is located, wherein the first icon is an icon closest to atarget screen edge in the plurality of icons, and the target screen edgeis a screen edge to which the input direction points.
 5. The methodaccording to claim 2, wherein the displaying the plurality of icons in atarget row or a target column comprises: respectively displaying theplurality of icons in the target column, and keeping display rowscorresponding to the plurality of icons unchanged; or respectivelydisplaying the plurality of icons in the target row, and keeping displaycolumns corresponding to the plurality of icons unchanged.
 6. The methodaccording to claim 2, wherein the input direction comprises a firstinput direction and a second input direction, and the target row or thetarget column is determined based on the first input direction; andafter the displaying the plurality of icons in a target row or a targetcolumn, the method further comprises: moving the plurality of iconswithin the target row or the target column along the second inputdirection, so that every two icons in the target row or the targetcolumn are adjacent to each other.
 7. The method according to claim 1,wherein at least a subset of the plurality of icons is displayed at afirst position, and a fourth icon is displayed at a second position; andthe arranging the plurality of icons in an arrangement mannercorresponding to an input parameter of the first input comprises:arranging the plurality of icons in the arrangement manner correspondingto the input parameter of the first input, wherein the at least subsetof the plurality of icons is moved from the first position to the secondposition, and the fourth icon is moved from the second position to thefirst position.
 8. An electronic device, comprising: a memory, aprocessor and a computer program stored in the memory and executable bythe processor, wherein the processor executes the computer program to:receive a first input on a plurality of icons; and arrange the pluralityof icons in an arrangement manner corresponding to an input parameter ofthe first input in response to the first input, wherein the inputparameter comprises an input track, and the processor executes thecomputer program to: arrange the plurality of icons according to apattern formed by the input track; wherein the processor executes thecomputer program to: receive a first sub-input on a second icon in theplurality of icons, and receive a second sub-input on a third icon inthe plurality of icons; and arrange the plurality of icons according tothe pattern formed by the input track, wherein a position of the thirdicon is kept unchanged.
 9. The electronic device according to claim 8,wherein the input parameter comprises the input direction; and theprocessor executes the computer program to: display the plurality oficons in a target row or a target column, wherein the target row or thetarget column is determined based on the input direction, and an anglebetween the target row and the input direction and an angle between thetarget column and the input direction are greater than a first presetangle and less than a second preset angle.
 10. The electronic deviceaccording to claim 9, wherein the target row is perpendicular to theinput direction, or the target column is perpendicular to the inputdirection.
 11. The electronic device according to claim 9, wherein theprocessor executes the computer program to: display a first icon in thetarget row or the target column; and display the plurality of icons inthe target row or the target column where the first icon is located,wherein the first icon is an icon closest to a target screen edge in theplurality of icons, and the target screen edge is a screen edge to whichthe input direction points.
 12. The electronic device according to claim9, wherein the processor executes the computer program to: respectivelydisplay the plurality of icons in the target column, and keep displayrows corresponding to the plurality of icons unchanged; or respectivelydisplay the plurality of icons in the target row, and keep displaycolumns corresponding to the plurality of icons unchanged.
 13. Theelectronic device according to claim 9, wherein the input directioncomprises a first input direction and a second input direction, and thetarget row or the target column is determined based on the first inputdirection; the processor executes the computer program to: move theplurality of icons within the target row or the target column along thesecond input direction, so that every two icons in the target row or thetarget column are adjacent to each other.
 14. The electronic deviceaccording to claim 8, wherein at least a subset of the plurality oficons is displayed at a first position, and a fourth icon is displayedat a second position; and the processor executes the computer programto: arrange the plurality of icons in the arrangement mannercorresponding to the input parameter of the first input, wherein the atleast subset of the plurality of icons is moved from the first positionto the second position, and the fourth icon is moved from the secondposition to the first position.
 15. A readable storage medium, storingprograms or instructions, wherein a processor executes the programs orthe instructions to: receive a first input on a plurality of icons; andarrange the plurality of icons in an arrangement manner corresponding toan input parameter of the first input in response to the first input,wherein the input parameter comprises an input track, and the processorexecutes the programs or the instructions to: arrange the plurality oficons according to a pattern formed by the input track; wherein theprocessor executes the programs or the instructions to: receive a firstsub-input on a second icon in the plurality of icons, and receive asecond sub-input on a third icon in the plurality of icons; and arrangethe plurality of icons according to the pattern formed by the inputtrack, wherein a position of the third icon is kept unchanged.
 16. Thereadable storage medium according to claim 15, wherein the inputparameter comprises the input direction; and the processor executes theprograms or the instructions to: display the plurality of icons in atarget row or a target column, wherein the target row or the targetcolumn is determined based on the input direction, and an angle betweenthe target row and the input direction and an angle between the targetcolumn and the input direction are greater than a first preset angle andless than a second preset angle.
 17. The readable storage mediumaccording to claim 16, wherein the target row is perpendicular to theinput direction, or the target column is perpendicular to the inputdirection.
 18. The readable storage medium according to claim 16,wherein the processor executes the programs or the instructions to:display a first icon in the target row or the target column; theprocessor executes the programs or the instructions to: display theplurality of icons in the target row or the target column where thefirst icon is located, wherein the first icon is an icon closest to atarget screen edge in the plurality of icons, and the target screen edgeis a screen edge to which the input direction points.
 19. The readablestorage medium according to claim 16, wherein the processor executes theprograms or the instructions to: respectively display the plurality oficons in the target column, and keep display rows corresponding to theplurality of icons unchanged; or respectively display the plurality oficons in the target row, and keep display columns corresponding to theplurality of icons unchanged.
 20. The readable storage medium accordingto claim 16, wherein the input direction comprises a first inputdirection and a second input direction, and the target row or the targetcolumn is determined based on the first input direction; the processorexecutes the programs or the instructions to: move the plurality oficons within the target row or the target column along the second inputdirection, so that every two icons in the target row or the targetcolumn are adjacent to each other.